//
//  NetworkManager.h
//
//
//  Created by MT on 2017/11/18.
//  Copyright © 2017年 MT. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NetworkManager : NSObject

//get 请求
+ (void)get:(NSString *)url
 parameters:(id)params
    success:(void (^)(id object))success
    failure:(void (^)(NSError *error))failure;

//post 请求
+ (void)post:(NSString *)uri
  parameters:(NSDictionary *)parameters
     success:(void (^)(id data))success
     failure:(void (^)(NSError *error))failure;

@end
